﻿@model Survey.Common.Models.Services.HowTos.ISimpleEntityModel

@this.CreateForm()

@AddControls(
    new Fieldset("w48p mh100 ", Str.Business.Common.Description)
    {
        new DefinitionList
        {
            new TextOrInput(maxLength: 150)
                .SetSourceProperty(() => Model.Filter.NaturalKey),

            new TextOrInput(maxLength: 250)
                .SetSourceProperty(() => Model.Filter.Description),

            new DefinitionListItem()
                .HideLabel(true)
                .AddControls(
                new RadioForNullableBool()
                    .ShowHeadersOnly(true)
                ),

            new RadioForNullableBool()
                .SetSourceProperty(() => Model.Filter.IsVisible)
                .ShowDescription(false),
        }
    },
    new Fieldset("w49p mh100 ", Str.Business.Common.Identification)
    {
        new DefinitionList()
        {
            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.RealValueFrom),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.RealValueTo),

            new TextOrInput(maxLength: 20)
                .SetSourceProperty(() => Model.Filter.IdLike),
        }
    })

@AddControls(
    new AdjustListView
    {
        Type = AdjustListViewType.Fieldset,
        CssClassName = "w70p mh75"
    })


@this.CloseForm()
